﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;
using System.IO;

namespace BDSim
{
    /// <summary>
    /// 环境段模型基类
    /// </summary>
    public abstract class EnvBaseModel : BDSimObject
    {
        #region 字段和属性
        /// <summary>
        /// 模型类型
        /// </summary>
        private EnvModelType _type;
        [XmlAttribute, ReadOnly(true), CategoryAttribute("基本信息")]
        public EnvModelType Type
        {
            get { return _type; }
            set { _type = value; }
        }

        /// <summary>
        /// 模型名称
        /// </summary>
        [XmlAttribute, CategoryAttribute("基本信息")]
        public string Name
        {
            get { return base._Name; }
            set { base._Name = value; }
        }

        /// <summary>
        /// 当前路劲
        /// </summary>
        protected static string currentDirectory = Directory.GetCurrentDirectory();

        #endregion

        #region 构造函数
        /// <summary>
        /// 构造函数
        /// </summary>
        public EnvBaseModel()
        {

        }

        #endregion

        #region 方法
        /// <summary>
        /// 初始化函数
        /// </summary>
        public virtual bool Init()
        {
            throw new System.NotImplementedException();
        }

        #endregion
    }
}
